Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not mutate azure dep list at runtime #4457

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Not mutate azure dep list at runtime #4457

merged 1 commit into from
Dec 11, 2024

Conversation

yika-luo
Copy link
Collaborator

Without deepcopy, cloud_python_dependencies.remove(dependencies.AZURE_CLI) will end up modifying the constant, affecting other runtimes that are referencing this module, and if other runtime tries to remove the same item again, ValueError will get thrown.

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_managed_jobs_storage
  • Backward compatibility tests: conda deactivate; bash -i tests/backward_compatibility_tests.sh

@yika-luo yika-luo requested a review from cg505 December 11, 2024 00:31
Copy link
Collaborator

@cg505 cg505 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, good catch! thank you!

@yika-luo yika-luo merged commit 1ed40e3 into master Dec 11, 2024
19 checks passed
@yika-luo yika-luo deleted the azure-bug branch December 11, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants